<template>
    <router-view></router-view>
</template>

<script>

import AppMenu from "@/components/AppMenu";
import Banner from "@/components/Banner";
import AppFooter from "@/components/AppFooter";
import AppHeader from "@/components/AppHeader";

export default {
    name: 'app',
    data() {
        return {}
    },
    mounted() {
        this.$router.afterEach((to, from, next) => {
            window.scrollTo(0, 0)
        })
    },
    components: {AppHeader, AppFooter, Banner, AppMenu},
    watch:{
        $route(to,from){
            this.$store.state.metaTitle =  sessionStorage.getItem('lang') === 'en' ? 'WANIX Software-Definied Network as a Service' : '万联软件定义网络 - ' + from.meta.route_name
        }
    },
}
</script>

<style>

* {
    outline: none;
}

ul {
    padding: 0;
    margin: 0;
}

span {
    font-size: 12px;
}

.table {
    margin-bottom: 0;
}

p {
    font-size: 14px;
    line-height: 1.6;
    color: #7B7B7B;
}

.jumbotron {
    margin-top: 24px;
    margin-bottom: 0;
}

h5 {
    padding: 0;
    margin: 0;
}


h2 {
    font-size: 42px;
}

li {
    list-style-type: none;
}

body {
    font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

header {
    background: #F2F2FF;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    text-decoration: none;
}

.route-link:hover {
    text-decoration: none;
    color: #3a43e8 !important;
}

p {
    margin: 0;
    padding: 0;
}

.ml-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all .2s ease;
    cursor: pointer;
    padding: 0 32px;
    background: #4D55E8;
    color: #fff;
    margin-top: 32px;
    height: 50px;
    font-weight: 500;
    font-size: 16px;
}

.ml-btn:hover {
    background: #363fe5;
    color: #fff;
}

.bg-life {
    background: #FFF8C5;
}
.bg-travel {
    background: #D4F3FF;
}
</style>
